package com.zy.controller;

import com.zy.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhangyi
 * @date 2018/7/21 15:19
 */
@Controller
public class ReadDataController {

    @Autowired
    private FileService fileService;

    @GetMapping("/readData")
    @ResponseBody
    public String readData(){
        return fileService.readData();
    }

    @GetMapping("/test2")
    @ResponseBody
    public String test2(){
        return "测试读取！";
    }

}
